@ts-nocheck
<template>
  <div class="footer">
    <div>
      <el-tag
        v-if="commonStore.isReal"
        type="primary"
        style="transform: scale(0.8); padding: 0 4px"
      >
        <b>生产</b>
      </el-tag>
      <el-tag
        v-else
        type="warning"
        style="transform: scale(0.8); padding: 0 4px"
      >
        <b>演示</b>
      </el-tag>
    </div>
    <div>终端管制室创新工作室&emsp;@{{ year }}</div>
    <Updater />
  </div>
</template>

<script setup>
import Updater from "@/components/Updater.vue";
import { computed } from "vue";
import useCommonStore from "@/store/common.js";
const commonStore = useCommonStore();

const year = computed(() => new Date().getFullYear());
</script>

<style scoped>
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 22;
  /* border-top: 1px solid #eee; */
  /* box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2); */
  font-size: 10px;
  font-weight: bold;
  color: #909399;
  /* background-color: #303133; */
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  background-color: var(--el-bg-color);
}
</style>
